Skip to content

docs: Update Python cookbook examples#127

Closed
RbBtSn0w wants to merge 6 commits intogithub:mainfrom
RbBtSn0w:main
Closed

docs: Update Python cookbook examples#127
RbBtSn0w wants to merge 6 commits intogithub:mainfrom
RbBtSn0w:main

Conversation

@RbBtSn0w
Copy link

  • Convert all 5 recipe examples to async/await patterns matching current SDK interface
    • error_handling.py: Async/await conversion with proper event handling
    • managing_local_files.py: Async conversion with non-blocking user input
    • multiple_sessions.py: Full async/await conversion with proper cleanup
    • persisting_sessions.py: Async/await conversion with session management updates
    • pr_visualization.py: Async conversion with async subprocess handling

Root cause: SDK interface changed from synchronous to asynchronous (async/await) API. All examples now use correct async patterns with proper error handling and cleanup."

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants